<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>个人情况</title>
		<meta name="renderer" content="webkit">
		<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
		<link rel="stylesheet" type="text/css" href="../commonCss/common.css" />
		<link rel="stylesheet" type="text/css" href="member.css" />
	</head>

	<script id="userTpl" type="text/html">
		<tr>
			<td>
				<input type="checkbox" name="id" value="{{d.id}}"   lay-skin="primary">
			</td>
			<td>{{d.id}}</td>
			<td>{{d.account}}</td>
			<td>{{d.sexName}}</td>
			<td>{{d.phone}}</td>
			<td>{{d.email}}</td>
			<td>{{d.roleName}}</td>
			<td class="td-status">
				<span class="layui-btn layui-btn-normal layui-btn-mini">{{d.statusName}}</span></td>
			<td class="td-manage">
				<a  href="javascript:;" class="startOrStop"  data-id="{{d.id}}" title="启用/禁用">
					<i class="layui-icon" data-id="{{d.id}}">&#xe601;</i>
				</a>
				<a title="编辑"  class="editUser" data-id="{{d.id}}" href="javascript:;">
					<i class="layui-icon" data-id="{{d.id}}">&#xe642;</i>
				</a>
				<!--<a class="changePwd" title="修改密码" data-id="{{d.id}}" href="javascript:;">-->
					<!--<i class="layui-icon" data-id="{{d.id}}">&#xe631;</i>-->
				<!--</a>-->
				<a title="删除" class="deleteUser" data-id="{{d.id}}" href="javascript:;">
					<i class="layui-icon" data-id="{{d.id}}">&#xe640;</i>
				</a>
			</td>
		</tr>
	</script>

	<body class="page_h5">
		<!-- <div class="personalInfo_h5">个人情况页面</div> -->
		<div class="page_header">
			<span>基本管理</span>
			<span class="line">/</span>
			<span>用户管理</span>
		</div>
		<div class="page_h5 member_h5">
			<div class="layui-row layui-col-space15">
				<div class="layui-col-md12">
					<div class="layui-card">
						<div class="layui-card-body ">
							<form class="layui-form">

								<div class="layui-inline layui-show-xs-block">
									<input type="text" name="searchAccount"  placeholder="请输入用户名" autocomplete="off" class="layui-input searchAccount">
								</div>
								<div class="layui-inline layui-show-xs-block">
									<button class="layui-btn search"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
								</div>
								<!--<div class="layui-inline layui-show-xs-block">-->
									<!--<button class="layui-btn add_btn"><i class="layui-icon"></i>添加</button>-->
								<!--</div>-->
							</form>
						</div>
						<div class="layui-card-header">
							<!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->
							<button class="layui-btn add_btn"><i class="layui-icon"></i>添加</button>
						</div>
						<div class="layui-card-body layui-table-body layui-table-main">
							<table class="layui-table layui-form">
								<thead>
								<tr>
									<th>
										<input type="checkbox" lay-filter="checkall" name="" lay-skin="primary">
									</th>
									<th>ID</th>
									<th>用户名</th>
									<th>性别</th>
									<th>手机</th>
									<th>电子邮箱</th>
									<th>角色</th>
									<th>状态</th>
									<th>操作</th></tr>
								</thead>
								<tbody class="userList">


								</tbody>
							</table>
							<div id="pagination" class="clearfix"></div>
						</div>

					</div>
				</div>
			</div>
		</div>
		<div class="modal JR_hide" id="myModal">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close">×</button>
						<h4 class="modal-title">新增/编辑用户</h4>
					</div>

					<div class="modal-body">
						<form class="layui-form" action="" id="addNewMemberForm">
							<input type="hidden" class="id save_val" name="id" value="" />

							<div class="layui-form-item">
								<label class="layui-form-label">用户名：</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input account save_val" name="account" required lay-verify="required"
										   placeholder="" autocomplete="off">
								</div>
							</div>

							<div class="layui-form-item">
								<label class="layui-form-label">密码：</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input password save_val" name="password" required lay-verify="required"
										   placeholder="" autocomplete="off">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">手机号：</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input phone save_val" name="phone" required lay-verify="required"
										   placeholder="" autocomplete="off">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">电子邮箱：</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input email save_val" name="email" required lay-verify="required"
										   placeholder="" autocomplete="off">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">性别：</label>
								<div class="layui-input-block">
									<select class="sex save_val" name="sex" lay-verify="required">
										<option value="1" checked>男</option>
										<option value="2">女</option>
									</select>
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">角色：</label>
								<div class="layui-input-block">
									<select class="roleId save_val" name="roleId" lay-verify="required">
										<option value="0" checked>管理员</option>
										<option value="1">院士</option>
										<option value="5">专家</option>
										<option value="4">机构/单位</option>
									</select>
								</div>
							</div>

						</form>
					</div>

					<div class="modal-footer">
						<div class="btn close btn-default" id="cancelAddNewMember">取消</div>
						<div class="btn btn-primary" id="submitNewMember">提交</div>
					</div>
				</div>
			</div>
		</div>
	</body>
	<script src="../commonJs/common.js" type="text/javascript" charset="utf-8"></script>
	<script src="../commonJs/xcity.js" type="text/javascript" charset="utf-8"></script>
	<script src="member.js" type="text/javascript" charset="utf-8"></script>
	<script>

	</script>
</html>
